<template>
  <div>
      <headers></headers>
        <van-row>
            <van-col span="5">
              <left/>
            </van-col>
            <van-col span="19">
                <van-field label="奖品名称" v-model="form.name"/>
                <van-field label="奖品价格" v-model="form.price"/>
                <van-field label="奖品库存" v-model="form.kc"/>
                <van-field label="奖品需要的积分" v-model="form.earned"/>
                <van-button @click="addtotal">提交</van-button>
              <van-button to="addarticle" text="去添加文章"/>
              <van-button to="fictionpass" text="去审核"/>
              <van-button to="fictionaudit" text="查看审核过程"/>
            </van-col>
         </van-row>
  </div>
</template>

<script>
import maxios from "@/http/axios";
import headers from '../comm/headers.vue'
import left from '../comm/left.vue'
export default {
  components:{
        'headers':headers,
        'left':left,
    },
  data() {
    return {
      form: {}
    }
  },
  methods:{
    addtotal(){
      maxios('addtotal','post',this.form).then(res=>{
        if(res.code==200){
          alert('ok')
        }else {
          alert('no')
        }
      })
    }
  }
}
</script>

<style scoped>

</style>